package com.walker.taogong.dal.hibernate.provider;

import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.walker.taogong.hibernate.MappingProvider;


/**
 * TODO: describe me
 *
 */
public class TaoGongMappingProvider implements MappingProvider
{
    
    @Override
    public List<Class<?>> getEntityClasses()
    {   
//        List<Class<?>> classes = new ArrayList<Class<?>>();
//        classes.add(Name.class);
//        return classes;
        
        return Collections.emptyList();
    }

    @Override
    public List<URL> getMappings()
    {
        List<URL> urlList = new ArrayList<URL>();
        
        String sourcePath  = "/resources/com/walker/taogong/datamodel/";

        urlList.add(getClass().getResource(sourcePath + "User.hbm.xml"));
        urlList.add(getClass().getResource(sourcePath + "Task.hbm.xml"));
        urlList.add(getClass().getResource(sourcePath + "TaskConversation.hbm.xml"));
        urlList.add(getClass().getResource(sourcePath + "TaskHistory.hbm.xml"));
        urlList.add(getClass().getResource(sourcePath + "TaskCategory.hbm.xml"));
        urlList.add(getClass().getResource(sourcePath + "Worker.hbm.xml"));
        
        return urlList;
        
    }

}
